﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="../include/topLess.jsp" %>

<link href="${baseURL}/static/css/style.css" rel="stylesheet" type="text/css" />

         <div class="logo_box">
             <div class="logo"></div>
                <form action="${baseURL}/user/login" onsubmit="return checkInput()" name="f" method="post" style="margin-top: 80px;">
                    <div class="input_outer">
                        <span class="u_user"></span>
                        <input name="userLoginname" class="text" style="color: #FFFFFF !important" placeholder="请输入账户" type="text">
                    </div>
                    <div class="input_outer">
                        <span class="us_uer"></span>
                        <input name="userPasswd" class="text" style="color: #FFFFFF !important; position:absolute; z-index:100;" value="" placeholder="请输入密码" type="password">
                    </div>
                    <div class="mb2"><a class="act-but submit" href="javascript:login();" style="color: #FFFFFF">登录</a></div>
                </form>
            </div>
         <div class="foot">
             <p>主办单位：江苏省自然资源厅</p>
             <p>业务咨询：厅海洋规划与经济处 电话: 025-86590312   省海洋经济监测评估中心  电话：025-86599744 </p>
         </div>
         
<script>

$(function(){
	
	$("input[name='userLoginname']").focus();
	
	$("input[name='userPasswd']").keyup(function(e){
		if (e.keyCode==13){
			login();
		}
	});
	
	if ('${msg}'!=''){
		layer.alert("${msg}");
	}
});

function login(){
	
	if (checkInput()){
		document.forms[0].submit();
	}
	
}


function checkInput(){
	var username = $("input[name='userLoginname']");
	if(username.val()==""){
		layer.alert("请输入用户名。");
		//username.focus();
		return false;
	}
	var password = $("input[name='userPasswd']");
	if(password.val()==""){
		layer.alert("请输入用户密码。");
		//username.focus();
		return false;
	}
	return true;
}

function isIFrameIn(){
	try{
		if(window.top ==window){
			return false;
		}else{
			return true;
		}
	}catch(e){
		return true;
	}
}
if(isIFrameIn()){
	top.location.href = window.location.href;
}

</script>

<%@ include file="../include/bottom.jsp" %>